package cn.yunyichina.provider.base.dao;

import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;
import cn.yunyichina.provider.iface.entity.PersonalUserOpenid;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-10-19 09:56:16
*/
@Repository
@MyBatisRepository
public interface PersonalUserOpenidDao extends BaseDao<PersonalUserOpenid>{
	
	/**
	 * 根据openId和appId获取对象
	 * @param openId
	 * @param appId
	 * @return
	 */
	public PersonalUserOpenid  getByOpenIdAndAppId(@Param("openId") String openId,@Param("appId") String appId);
	public PersonalUserOpenid selectByOpenId(@Param("openId") String openId, @Param("appId") String appId);
	PersonalUserOpenid selectByPerUserId(@Param("perUserId") String perUserId);
}